/* @(#)GSOrderDeptInfoDelAction.java    V0.1
 *
 * Project: GSdevelop
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   owen         2006-2-17
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.ArrayList;

import com.hitrust.gs.business.GSOrderDeptInfoProcessor;
import com.hitrust.gs.business.GSOrganizationProcessor;
import com.hitrust.gs.form.GSOrderDeptInfoDelForm;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;

/**
 * 删除订货单位的常用联系方式信息
 */
public class GSOrderDeptInfoDelAction extends GSBaseAction{

    public String execute(GSBaseForm aForm) throws Exception {
        GSOrderDeptInfoDelForm tForm = (GSOrderDeptInfoDelForm)aForm;
        String tOrgid = tForm.getGs_org_id();
        String tAddrid = tForm.getGs_deliver_goods_addr_id();
        GSOrderDeptInfoProcessor.withdrawTask(tOrgid,tAddrid);
        aForm.getRequest().setAttribute("requery","true");
        ArrayList tAllOraganization = GSOrganizationProcessor.queryManageOrg("","");
        aForm.getRequest().setAttribute("AllOraganization",tAllOraganization);
        
        //查询条件
        aForm.getRequest().setAttribute("s_org_id",aForm.getRequest().getParameter("s_org_id"));
        aForm.getRequest().setAttribute("s_gsdelivergoodsaddr",aForm.getRequest().getParameter("s_gsdelivergoodsaddr"));
        
        aForm.getRequest().setAttribute("s_pageNo",aForm.getRequest().getParameter("s_pageNo"));

        
        return GSBaseConstants.FORWARD_SUCCESS;
    }

}
